package com.oig.base.api;


import com.oig.sys.base.dto.HsGoodsTariffDto;
import com.oig.sys.base.vo.HsGoodsTariffVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(contextId = "hsGoodsTariffService", value = "sys-base-server",path = "/hsGoodsTariff")
public interface HsGoodsTariffService {

    @PostMapping("/getTariff")
    HsGoodsTariffVo getTariff(@RequestParam("countryCode")String countryCode, @RequestParam("hsCode") String hsCode);

    @PostMapping("/getTariffList")
    List<HsGoodsTariffVo> getTariffByHSCodeAndCountryCodeList(@RequestBody List<HsGoodsTariffDto> req);

}
